package com.toby.demo.concurrent.a;

import com.toby.demo.concurrent.api.AHelloService;
import com.toby.demo.concurrent.api.BHelloService;
import org.apache.dubbo.config.annotation.Reference;
import org.apache.dubbo.config.annotation.Service;

@Service
public class AHelloServiceImpl implements AHelloService {

    @Reference
    private BHelloService bHelloService;

    @Override
    public String sayHello() throws Exception{

        bHelloService.sayHello();
        Thread.sleep(10L);
        bHelloService.sayHello();

        return "欢迎关注微信公众号：肥朝";
    }
}
